home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1996 March / EnigmA AMIGA RUN 05 (1996)(G.R. Edizioni)(IT)[!][issue 1996-03][Skylink CD IV].iso / earcd / program / ixemlsrc.lha / ixemul / stdio / Makefile.in < prev    next >
Makefile  |  1995-12-23  |  2KB  |  117 lines

  1. #### Start of system configuration section. ####
  2.  
  3. srcdir =    @srcdir@
  4.  
  5. ifeq ($(srcdir),.)
  6. srcdir = ../..
  7. endif
  8.  
  9. VPATH :=    $(srcdir)
  10.  
  11. # Common prefix for machine-independent installed files.
  12. prefix =    @prefix@
  13.  
  14. # Common prefix for machine-dependent installed files.
  15. exec_prefix =    @exec_prefix@
  16.  
  17. bindir =    $(exec_prefix)/bin
  18. libdir =    $(exec_prefix)/Sys/libs
  19.  
  20. INSTALL =    @INSTALL@
  21. INSTALL_DATA =    @INSTALL_DATA@
  22.  
  23. CC =        @CC@
  24.  
  25. CFLAGS =    @CFLAGS@
  26. LDFLAGS =    @LDFLAGS@
  27.  
  28. RANLIB =    @RANLIB@
  29. AR =        ar
  30.  
  31. #### End system configuration section ####
  32.  
  33. ifdef CATENATE
  34. DEBUG_FLAG =    -g
  35. else
  36. DEBUG_FLAG =    
  37. endif
  38.  
  39. # I *love* GNU make!
  40. define catenate
  41. /bin/echo -n creating $@...
  42. /bin/echo "$(^:%=#include \"%\"\n)" >$@
  43. /bin/echo done
  44. endef
  45.  
  46. FLAVOR_CFLAGS =    -m$(CPU) -m$(FPU)
  47. ALL_CFLAGS =    $(CFLAGS) $(FLAVOR_CFLAGS) $(OTHER_CFLAGS) $(DEBUG_FLAG) $(INCS)
  48.  
  49. INCS =        -I$(srcdir) -I$(srcdir)/../library -I$(srcdir)/../include
  50. LIB =        libstdio.a
  51.  
  52. .c.o:
  53.         $(CC) $(ALL_CFLAGS) -c $< -o $@
  54.  
  55. SRC =        clrerr.c fclose.c fdopen.c feof.c ferror.c fflush.c fgetc.c \
  56.         fgetline.c fgetpos.c fgets.c fileno.c findfp.c flags.c \
  57.         fopen.c fprintf.c fpurge.c fputc.c fputs.c fread.c freopen.c \
  58.         fscanf.c fseek.c fsetpos.c ftell.c funopen.c fvwrite.c fwalk.c \
  59.         fwrite.c getc.c getchar.c gets.c getw.c makebuf.c perror.c \
  60.         printf.c putc.c putchar.c puts.c putw.c refill.c rewind.c \
  61.         rget.c scanf.c setbuf.c setbuffer.c setvbuf.c snprintf.c \
  62.         sprintf.c sscanf.c stdio.c tempnam.c tmpfile.c tmpnam.c \
  63.         ungetc.c vfprintf.c vfscanf.c vprintf.c vscanf.c \
  64.         vsnprintf.c vsprintf.c vsscanf.c wbuf.c wsetup.c
  65.  
  66. OBJ =        $(SRC:.c=.o)
  67.  
  68. ifdef CATENATE
  69. ALL =        all.o
  70. else
  71. ALL =        $(OBJ)
  72. endif
  73.  
  74. $(LIB) :    $(ALL)
  75.         rm -f $@
  76.         $(AR) rv $@ $(ALL)
  77.         $(RANLIB) $@
  78.  
  79. all.c:        $(SRC)
  80.         @$(catenate)
  81.  
  82. clean:
  83.         rm -rf 680?0
  84.  
  85. clobber:    clean
  86.         rm -f Makefile
  87.  
  88. fdopen.o :    local.h
  89. fclose.o :    local.h
  90. fflush.o :    local.h
  91. fwrite.o :    local.h fvwrite.h
  92. findfp.o :    local.h
  93. fpurge.o :    local.h
  94. fwalk.o :    local.h
  95. funopen.o :    local.h
  96. fgetline.o :    local.h
  97. freopen.o :    local.h
  98. fseek.o :    local.h
  99. ftell.o :    local.h
  100. fvwrite.o :    local.h fvwrite.h
  101. fputs.o :    fvwrite.h
  102. fopen.o :    local.h
  103. makebuf.o :    local.h
  104. puts.o :    fvwrite.h
  105. putw.o :    fvwrite.h
  106. setbuf.o :    local.h
  107. refill.o :    local.h
  108. setvbuf.o :    local.h
  109. sprintf.o :    local.h
  110. sscanf.o :    local.h
  111. vfscanf.o :    local.h floatio.h
  112. stdio.o :    local.h
  113. vfprintf.o :    local.h fvwrite.h floatio.h
  114. ungetc.o :    local.h
  115. wbuf.o :    local.h
  116. wsetup.o :    local.h
  117.